﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NCAB.WF
{
    public partial class General : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.IsAuthenticated)
            {
                MembershipUser user = Membership.GetUser();

                lbUserName.Text = user.UserName;
                imgProfile.Src = "img/profiles/" + user.UserName + ".jpg";
                imgProfileSmall.Src = "img/profiles/" + user.UserName + ".jpg";
                lbRol.Text = Roles.GetRolesForUser()[0];
            }
        }
    }
}